package org.p2psimulator.entity.protocol.messages.general;


import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

@SuppressWarnings ("unchecked")
public class DownloadRequestMessage extends Message {

	public DownloadRequestMessage(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);
	}

	Id fileId;

	public Id getFileId() {
		return fileId;
	}

	public void setFileId(Id fileId) {
		this.fileId = fileId;
	}


	@Override
	public String getName() {

		return MessageTypes.DOWNLOAD_REQUEST_MESSAGE.getName();
	}

	@Override
	public MessageTypes getMessageType() {

		return MessageTypes.DOWNLOAD_REQUEST_MESSAGE;
	}

}
